<?php

namespace app\admin\validate;

use think\Validate;

class Links extends Validate
{
    protected $rule = [
        'title'  =>  'require|max:25',
        'url' =>  'require',
    ];
	
	protected $message  =   [
	        'title.require' => '标题必须填写',
	        'title.max'     => '标题最多不能超过25个字符',
	        'url.require'   => '链接地址必须填写',
	    ];

}